package com.shiroha.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import com.mybatisflex.annotation.EnumValue;
import lombok.Getter;

@Getter
public enum GroupRole {
    GROUP_LEADER(0, "群主"),
    GROUP_ADMIN(1, "管理员"),
    GROUP_MEMBER(2, "成员"),
    ;

    @EnumValue
    @JsonValue
    private final int value;
    private final String description;

    GroupRole(int value, String description) {
        this.value = value;
        this.description = description;
    }
}
